package cn.xinfei.xdecision.common.model.component.folder.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * Created by maying on 2023/03/21.
 **/
@Data
public class FolderDeleteReqVo {

	@ApiModelProperty(value = "目录名称", example = "目录一",required = true)
	@NotEmpty(message = "目录名称不能为空")
	private String name;

	@ApiModelProperty(value = "文件夹id", example = "0",required = true)
	@NotNull(message = "id不能为空")
	private Long id;

	@ApiModelProperty(value = "父节点id", example = "0",required = true)
	@NotNull(message = "父节点id不能为空")
	private Long parentId;

	@ApiModelProperty(value = "组件目录类型", example = "complexRuleBase",required = true)
	private String componentType;

	@ApiModelProperty(value = "目录类型,:basicType 基础变量;constType:常变量;deriveType:衍生变量;interfaceType:接口变量",
			example = "basicType",required = true)
	private String variableType;

	@ApiModelProperty(value = "文件夹类型", example = "1：组件类型，0：变量类型")
	private Integer folderType;

	@ApiModelProperty(value = "用户id", example = "12")
	private Long userId;

}
